package com.alipay.sofa.award.endpoint.exception;

/**
 * AuthErrorCodeDescImpl
 *
 * @author yangguanchao
 * @since 2018/09/05
 */
public enum AuthErrorCodeDescImpl implements ErrorCodeDescFacade {

    AUTH_CODE_BLANK_ERROR_CODE_DESC("0030", "AuthCode blank error!", "传递的参数 AuthCode 为空异常"),
    AUTH_TOKEN_ERROR_CODE_DESC("0031", "AuthToken get error! code={0}, msg={1}", "获取 AuthToken 失败 code={0}, msg={1}"),
    AUTH_USER_INFO_ERROR_CODE_DESC("0032", "User auth get error! code={0}, msg={1}", "获取用户信息失败 code={0}, msg={1}"),
    ;

    /**
     * Error Code
     */
    private String code   = "";
    /**
     * EN Desc
     */
    private String enDesc = "";

    /**
     * ZH Desc
     */
    private String zhDesc = "";

    AuthErrorCodeDescImpl(String errorCode, String enDesc, String zhDesc) {
        this.code = errorCode;
        this.enDesc = enDesc;
        this.zhDesc = zhDesc;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getEnDesc() {
        return this.enDesc;
    }

    @Override
    public String getZhDesc() {
        return this.zhDesc;
    }
}
